package com.rd.student.jike.class2.lihongming.Day0809;

/**
 * @Auther:Heinrich
 * @Date:2023/8/9-08-09-16:20
 * @Description:com.rd.student.jike.class2.lihongming.Day0809
 * @version:1.0
 */
public class Question16 {
    public static void main(String[] args) {
        System.out.println(Cip(1234));
        System.out.println(Cip(1579));
    }

    public static int Cip(int n) {
        int r = 0 ;
        while (n!=0){
            r *= 10;
            r += (n%10+5)%10;
            n/=10;
        }
        return r;
    }
}
